<template>
  <BaseDialog @close="close" @confirm="confirm" :isShowTitle="false" v-model="isShow" title="Warning" width="30%" >
    
  </BaseDialog>
</template>

<script setup lang="ts">
import {ref} from "vue";
import {selectFirstFlowNodeInfoByDefinitionKey} from '/@/api/flow/BaseFlowApi'

const isShow = ref(false)

/**
 * 打开第一个节点
 */
const firstNode = async (definitionKey: string) => {
  isShow.value = true
  let res =  await selectFirstFlowNodeInfoByDefinitionKey(definitionKey)
  console.log(res)
}
/**
 * 打开下一个节点面板
 */
const nextNode = () =>{
  isShow.value = true

}
const close = () => {
  isShow.value = false
}
const confirm = () =>{
  isShow.value = false
}
defineExpose({firstNode,nextNode})
</script>



<style scoped>

</style>